home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFXMLParser.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  129 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFXMLParser.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFXMLParser_h__
  6. #define __gen_nsIRDFXMLParser_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIRDFDataSource_h__
  14. #include "nsIRDFDataSource.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIStreamListener_h__
  18. #include "nsIStreamListener.h"
  19. #endif
  20.  
  21. #ifndef __gen_nsIURI_h__
  22. #include "nsIURI.h"
  23. #endif
  24.  
  25. /* For IDL files that don't want to include root IDL files. */
  26. #ifndef NS_NO_VTABLE
  27. #define NS_NO_VTABLE
  28. #endif
  29.  
  30. /* starting interface:    nsIRDFXMLParser */
  31. #define NS_IRDFXMLPARSER_IID_STR "1831dd2e-1dd2-11b2-bdb3-86b7b50b70b5"
  32.  
  33. #define NS_IRDFXMLPARSER_IID \
  34.   {0x1831dd2e, 0x1dd2, 0x11b2, \
  35.     { 0xbd, 0xb3, 0x86, 0xb7, 0xb5, 0x0b, 0x70, 0xb5 }}
  36.  
  37. class NS_NO_VTABLE nsIRDFXMLParser : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFXMLPARSER_IID)
  41.  
  42.   /**
  43.      * Create a stream listener that can be used to asynchronously
  44.      * parse RDF/XML.
  45.      * @param aSink the RDF datasource the will receive the data
  46.      * @param aBaseURI the base URI used to resolve relative
  47.      *   references in the RDF/XML
  48.      * @return an nsIStreamListener object to handle the data
  49.      */
  50.   /* nsIStreamListener parseAsync (in nsIRDFDataSource aSink, in nsIURI aBaseURI); */
  51.   NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener **_retval) = 0;
  52.  
  53.   /**
  54.      * Parse a string of RDF/XML
  55.      * @param aSink the RDF datasource that will receive the data
  56.      * @param aBaseURI the base URI used to resolve relative
  57.      *   references in the RDF/XML
  58.      * @param aSource a UTF8 string containing RDF/XML data.
  59.      */
  60.   /* void parseString (in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource); */
  61.   NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) = 0;
  62.  
  63. };
  64.  
  65. /* Use this macro when declaring classes that implement this interface. */
  66. #define NS_DECL_NSIRDFXMLPARSER \
  67.   NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener **_retval); \
  68.   NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource); 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  71. #define NS_FORWARD_NSIRDFXMLPARSER(_to) \
  72.   NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener **_retval) { return _to ParseAsync(aSink, aBaseURI, _retval); } \
  73.   NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) { return _to ParseString(aSink, aBaseURI, aSource); } 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  76. #define NS_FORWARD_SAFE_NSIRDFXMLPARSER(_to) \
  77.   NS_IMETHOD ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseAsync(aSink, aBaseURI, _retval); } \
  78.   NS_IMETHOD ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseString(aSink, aBaseURI, aSource); } 
  79.  
  80. #if 0
  81. /* Use the code below as a template for the implementation class for this interface. */
  82.  
  83. /* Header file */
  84. class nsRDFXMLParser : public nsIRDFXMLParser
  85. {
  86. public:
  87.   NS_DECL_ISUPPORTS
  88.   NS_DECL_NSIRDFXMLPARSER
  89.  
  90.   nsRDFXMLParser();
  91.  
  92. private:
  93.   ~nsRDFXMLParser();
  94.  
  95. protected:
  96.   /* additional members */
  97. };
  98.  
  99. /* Implementation file */
  100. NS_IMPL_ISUPPORTS1(nsRDFXMLParser, nsIRDFXMLParser)
  101.  
  102. nsRDFXMLParser::nsRDFXMLParser()
  103. {
  104.   /* member initializers and constructor code */
  105. }
  106.  
  107. nsRDFXMLParser::~nsRDFXMLParser()
  108. {
  109.   /* destructor code */
  110. }
  111.  
  112. /* nsIStreamListener parseAsync (in nsIRDFDataSource aSink, in nsIURI aBaseURI); */
  113. NS_IMETHODIMP nsRDFXMLParser::ParseAsync(nsIRDFDataSource *aSink, nsIURI *aBaseURI, nsIStreamListener **_retval)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* void parseString (in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource); */
  119. NS_IMETHODIMP nsRDFXMLParser::ParseString(nsIRDFDataSource *aSink, nsIURI *aBaseURI, const nsACString & aSource)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* End of implementation class template. */
  125. #endif
  126.  
  127.  
  128. #endif /* __gen_nsIRDFXMLParser_h__ */
  129.